home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000150_news@watsun.cc.columbia.edu _Wed Jan 27 11:18:09 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA07573
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 27 Jan 1999 11:18:09 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA02492
  7.     for kermit.misc@watsun.cc.columbia.edu; Wed, 27 Jan 1999 11:11:32 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: using C-Kermit (on Linux) to comm. with RS-232 device
  11. Date: 27 Jan 1999 16:11:29 GMT
  12. Organization: Columbia University
  13. Message-ID: <78ndrh$2dq$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@mailrelay2.cc.columbia.edu
  15.  
  16. In article <36ADCC90.6509@techst02.technion.ac.il>,
  17. Evgeni Krimer  <sek@techst02.technion.ac.il> wrote:
  18. : I am tring to communicate with RS-232 device ,
  19. : working on Linux platform with C-Kermit.
  20. : All I have to do is : 
  21. : 1. to send (binary) set of commands
  22. : 2. to recive (binary) responce 
  23. : the question is :
  24. : HOW DO I RECIVE UNKNOWN AMOUNT OF DATA?
  25. : Please if you could give a short example of such a script...
  26. The INPUT and MINPUT commands let you receive data:
  27.  
  28.  a. For a given amount of time, or:
  29.  b. Until a certain character string comes, or:
  30.  c. Until one of several character strings come, or:
  31.  d. Until any character comes.
  32.  
  33. Each of these methods is described in the manual, along with
  34. the method for retrieving the data values thus obtained.
  35.  
  36. The method you should use depends on how Kermit is supposed
  37. to know when the responce is finished.
  38.  
  39. - Frank